var http = require('http')
var url=require('url')

http
  .createServer(function (req, res) {
    let callback = url.parse(req.url,true).query.callback //getname
    //getname({name:"joven",age:30})
    res.end(`${callback}({name:"joven",age:30})`)
  })
  .listen(3000) //在电脑上启动一个服务，监听在3000端口
console.log('服务启在：http://localhost:3000')
